package home_8_27;

import com.neu.Dao.BaseDao;

import java.util.List;
import java.util.Map;

public class UpdateTest extends BaseDao {
    public int  update(){
        int row = 0;
        String sql = "update student set sname = ? where sno = 101";
        int r = super.executeUpdate(sql,"孙行者");

        if (r>0){
            System.out.println("成功");
        }else {
            System.out.println("失败");
        }

        return row;
    }

    public static void main(String[] args) {

        UpdateTest stu = new UpdateTest();
        System.out.println(stu.update());


    }
}
